#ifndef   __SVPWM_H
#define   __SVPWM_H

#include "gpio.h"
#include "epwm.h"

#define PWM_CLK             64000000
#define MOTOR_PWM_PERIOD	1600 	    // 20KHz 对应 1600

#define Motor_ON    EPWM_EnableOutput(0x3F);
#define Motor_OFF   EPWM_DisableOutput(0x3F);

void SVPWM_Init(uint16_t freq);

extern uint16_t Motor_PWM_Period;

#endif
